Fix build for pedantic compilers.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 24 Sep 2005 14:35:47 +0000 (15:35 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 24 Sep 2005 14:35:47 +0000 (15:35 +0100)
xen/common/grant_table.c

index 512b1bf5f827e0a6632b65cb3fe7690cbd4620b0..695caa17a5c70a6b9b99825d848bcbdd3aa41c48 100644 (file)
@@ -83,7 +83,7 @@ __gnttab_map_grant_ref(
     int            handle;
     u64            addr;
     unsigned long  frame = 0;
-    int            rc;
+    int            rc = GNTST_okay;
     active_grant_entry_t *act;
 
     /* Entry details from @rd's shared grant table. */
@@ -377,7 +377,6 @@ __gnttab_map_grant_ref(
 
             spin_unlock(&rd->grant_table->lock);
         }
-
     }
 
     ld->grant_table->maptrack[handle].domid         = dom;